.class Lcom/xingbook/ui/u;
.super Landroid/view/View;


# instance fields
.field final synthetic a:Lcom/xingbook/ui/t;


# direct methods
.method public constructor <init>(Lcom/xingbook/ui/t;Landroid/content/Context;)V
    .locals 0

    iput-object p1, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    invoke-direct {p0, p2}, Landroid/view/View;-><init>(Landroid/content/Context;)V

    return-void
.end method

.method static synthetic a(Lcom/xingbook/ui/u;)Lcom/xingbook/ui/t;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    return-object v0
.end method


# virtual methods
.method public declared-synchronized a(Z)V
    .locals 6

    const/high16 v5, 0x4000

    monitor-enter p0

    :try_start_0
    iget-object v0, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    invoke-static {v0, p1}, Lcom/xingbook/ui/t;->a(Lcom/xingbook/ui/t;Z)V

    if-eqz p1, :cond_1

    iget-object v0, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    iget-object v0, v0, Lcom/xingbook/ui/t;->e:Landroid/graphics/Bitmap;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    invoke-static {v0}, Lcom/xingbook/ui/t;->e(Lcom/xingbook/ui/t;)Landroid/graphics/Matrix;

    move-result-object v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    new-instance v1, Landroid/graphics/Matrix;

    invoke-direct {v1}, Landroid/graphics/Matrix;-><init>()V

    invoke-static {v0, v1}, Lcom/xingbook/ui/t;->a(Lcom/xingbook/ui/t;Landroid/graphics/Matrix;)V

    iget-object v0, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    new-instance v1, Landroid/graphics/Rect;

    invoke-direct {v1}, Landroid/graphics/Rect;-><init>()V

    invoke-static {v0, v1}, Lcom/xingbook/ui/t;->a(Lcom/xingbook/ui/t;Landroid/graphics/Rect;)V

    iget-object v0, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    new-instance v1, Landroid/graphics/PointF;

    invoke-direct {v1}, Landroid/graphics/PointF;-><init>()V

    invoke-static {v0, v1}, Lcom/xingbook/ui/t;->a(Lcom/xingbook/ui/t;Landroid/graphics/PointF;)V

    iget-object v0, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    invoke-static {v0}, Lcom/xingbook/ui/t;->j(Lcom/xingbook/ui/t;)Landroid/graphics/Rect;

    move-result-object v0

    iget-object v1, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    invoke-static {v1}, Lcom/xingbook/ui/t;->f(Lcom/xingbook/ui/t;)Landroid/graphics/PointF;

    move-result-object v1

    iget-object v2, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    invoke-static {v2}, Lcom/xingbook/ui/t;->a(Lcom/xingbook/ui/t;)Landroid/app/Activity;

    move-result-object v2

    invoke-static {v2}, Lcom/xingbook/c/n;->c(Landroid/app/Activity;)I

    move-result v2

    iget-object v3, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    iget-object v3, v3, Lcom/xingbook/ui/t;->e:Landroid/graphics/Bitmap;

    invoke-virtual {v3}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v3

    sub-int/2addr v2, v3

    int-to-float v2, v2

    const/high16 v3, 0x4180

    iget-object v4, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    invoke-static {v4}, Lcom/xingbook/ui/t;->a(Lcom/xingbook/ui/t;)Landroid/app/Activity;

    move-result-object v4

    invoke-static {v4}, Lcom/xingbook/c/n;->f(Landroid/app/Activity;)F

    move-result v4

    mul-float/2addr v3, v4

    sub-float/2addr v2, v3

    iput v2, v1, Landroid/graphics/PointF;->x:F

    invoke-static {v2}, Ljava/lang/Math;->round(F)I

    move-result v1

    iput v1, v0, Landroid/graphics/Rect;->left:I

    iget-object v0, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    invoke-static {v0}, Lcom/xingbook/ui/t;->j(Lcom/xingbook/ui/t;)Landroid/graphics/Rect;

    move-result-object v0

    iget-object v1, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    invoke-static {v1}, Lcom/xingbook/ui/t;->f(Lcom/xingbook/ui/t;)Landroid/graphics/PointF;

    move-result-object v1

    sget v2, Lcom/xingbook/ui/t;->b:I

    iget-object v3, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    iget-object v3, v3, Lcom/xingbook/ui/t;->e:Landroid/graphics/Bitmap;

    invoke-virtual {v3}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v3

    sub-int/2addr v2, v3

    int-to-float v2, v2

    div-float/2addr v2, v5

    iput v2, v1, Landroid/graphics/PointF;->y:F

    invoke-static {v2}, Ljava/lang/Math;->round(F)I

    move-result v1

    iput v1, v0, Landroid/graphics/Rect;->top:I

    iget-object v0, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    invoke-static {v0}, Lcom/xingbook/ui/t;->e(Lcom/xingbook/ui/t;)Landroid/graphics/Matrix;

    move-result-object v0

    iget-object v1, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    invoke-static {v1}, Lcom/xingbook/ui/t;->f(Lcom/xingbook/ui/t;)Landroid/graphics/PointF;

    move-result-object v1

    iget v1, v1, Landroid/graphics/PointF;->x:F

    iget-object v2, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    invoke-static {v2}, Lcom/xingbook/ui/t;->f(Lcom/xingbook/ui/t;)Landroid/graphics/PointF;

    move-result-object v2

    iget v2, v2, Landroid/graphics/PointF;->y:F

    invoke-virtual {v0, v1, v2}, Landroid/graphics/Matrix;->setTranslate(FF)V

    iget-object v0, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    invoke-static {v0}, Lcom/xingbook/ui/t;->j(Lcom/xingbook/ui/t;)Landroid/graphics/Rect;

    move-result-object v0

    iget-object v1, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    invoke-static {v1}, Lcom/xingbook/ui/t;->j(Lcom/xingbook/ui/t;)Landroid/graphics/Rect;

    move-result-object v1

    iget v1, v1, Landroid/graphics/Rect;->left:I

    iget-object v2, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    iget-object v2, v2, Lcom/xingbook/ui/t;->e:Landroid/graphics/Bitmap;

    invoke-virtual {v2}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v2

    add-int/2addr v1, v2

    iput v1, v0, Landroid/graphics/Rect;->right:I

    iget-object v0, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    invoke-static {v0}, Lcom/xingbook/ui/t;->j(Lcom/xingbook/ui/t;)Landroid/graphics/Rect;

    move-result-object v0

    iget-object v1, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    invoke-static {v1}, Lcom/xingbook/ui/t;->j(Lcom/xingbook/ui/t;)Landroid/graphics/Rect;

    move-result-object v1

    iget v1, v1, Landroid/graphics/Rect;->top:I

    iget-object v2, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    iget-object v2, v2, Lcom/xingbook/ui/t;->e:Landroid/graphics/Bitmap;

    invoke-virtual {v2}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v2

    add-int/2addr v1, v2

    iput v1, v0, Landroid/graphics/Rect;->bottom:I

    iget-object v0, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    invoke-static {v0}, Lcom/xingbook/ui/t;->f(Lcom/xingbook/ui/t;)Landroid/graphics/PointF;

    move-result-object v0

    iget v1, v0, Landroid/graphics/PointF;->x:F

    iget-object v2, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    iget-object v2, v2, Lcom/xingbook/ui/t;->e:Landroid/graphics/Bitmap;

    invoke-virtual {v2}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v2

    int-to-float v2, v2

    div-float/2addr v2, v5

    add-float/2addr v1, v2

    iput v1, v0, Landroid/graphics/PointF;->x:F

    iget-object v0, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    invoke-static {v0}, Lcom/xingbook/ui/t;->f(Lcom/xingbook/ui/t;)Landroid/graphics/PointF;

    move-result-object v0

    iget v1, v0, Landroid/graphics/PointF;->y:F

    iget-object v2, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    iget-object v2, v2, Lcom/xingbook/ui/t;->e:Landroid/graphics/Bitmap;

    invoke-virtual {v2}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v2

    int-to-float v2, v2

    div-float/2addr v2, v5

    add-float/2addr v1, v2

    iput v1, v0, Landroid/graphics/PointF;->y:F

    :cond_0
    new-instance v0, Ljava/lang/Thread;

    new-instance v1, Lcom/xingbook/ui/v;

    invoke-direct {v1, p0}, Lcom/xingbook/ui/v;-><init>(Lcom/xingbook/ui/u;)V

    invoke-direct {v0, v1}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V

    invoke-virtual {v0}, Ljava/lang/Thread;->start()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    :cond_1
    monitor-exit p0

    return-void

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method protected onDraw(Landroid/graphics/Canvas;)V
    .locals 14

    const/4 v9, 0x0

    const/4 v8, 0x1

    const/4 v13, -0x1

    const/high16 v12, 0x4000

    const/4 v1, 0x0

    iget-object v0, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    invoke-static {v0}, Lcom/xingbook/ui/t;->a(Lcom/xingbook/ui/t;)Landroid/app/Activity;

    move-result-object v0

    invoke-static {v0}, Lcom/xingbook/c/n;->c(Landroid/app/Activity;)I

    move-result v10

    iget-object v0, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    invoke-static {v0}, Lcom/xingbook/ui/t;->a(Lcom/xingbook/ui/t;)Landroid/app/Activity;

    move-result-object v0

    invoke-static {v0}, Lcom/xingbook/c/n;->f(Landroid/app/Activity;)F

    move-result v0

    const/high16 v2, 0x4180

    mul-float v11, v2, v0

    iget-object v0, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    iget-boolean v0, v0, Lcom/xingbook/ui/t;->g:Z

    if-eqz v0, :cond_4

    invoke-static {}, Lcom/xingbook/ui/t;->a()Landroid/graphics/Paint;

    move-result-object v0

    iget-object v2, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    iget v2, v2, Lcom/xingbook/ui/t;->h:I

    invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setColor(I)V

    invoke-static {}, Lcom/xingbook/ui/t;->a()Landroid/graphics/Paint;

    move-result-object v0

    const/high16 v2, -0x100

    invoke-virtual {v0, v12, v1, v12, v2}, Landroid/graphics/Paint;->setShadowLayer(FFFI)V

    int-to-float v3, v10

    sget v0, Lcom/xingbook/ui/t;->b:I

    int-to-float v4, v0

    invoke-static {}, Lcom/xingbook/ui/t;->a()Landroid/graphics/Paint;

    move-result-object v5

    move-object v0, p1

    move v2, v1

    invoke-virtual/range {v0 .. v5}, Landroid/graphics/Canvas;->drawRect(FFFFLandroid/graphics/Paint;)V

    invoke-static {}, Lcom/xingbook/ui/t;->a()Landroid/graphics/Paint;

    move-result-object v0

    invoke-virtual {v0, v1, v1, v1, v9}, Landroid/graphics/Paint;->setShadowLayer(FFFI)V

    invoke-static {}, Lcom/xingbook/ui/t;->a()Landroid/graphics/Paint;

    move-result-object v0

    invoke-virtual {v0, v13}, Landroid/graphics/Paint;->setColor(I)V

    :goto_0
    iget-object v0, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    iget-boolean v0, v0, Lcom/xingbook/ui/t;->f:Z

    if-eqz v0, :cond_a

    invoke-static {}, Lcom/xingbook/ui/t;->b()Landroid/graphics/Bitmap;

    move-result-object v0

    sget v1, Lcom/xingbook/ui/t;->b:I

    invoke-static {}, Lcom/xingbook/ui/t;->b()Landroid/graphics/Bitmap;

    move-result-object v2

    invoke-virtual {v2}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v2

    sub-int/2addr v1, v2

    int-to-float v1, v1

    div-float/2addr v1, v12

    const/4 v2, 0x0

    invoke-virtual {p1, v0, v11, v1, v2}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V

    iget-object v0, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    invoke-static {v0}, Lcom/xingbook/ui/t;->d(Lcom/xingbook/ui/t;)I

    move-result v0

    sget v1, Lcom/xingbook/ui/t;->a:I

    float-to-int v2, v11

    add-int/2addr v1, v2

    if-eq v0, v1, :cond_10

    iget-object v0, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    sget v1, Lcom/xingbook/ui/t;->a:I

    float-to-int v2, v11

    add-int/2addr v1, v2

    invoke-static {v0, v1}, Lcom/xingbook/ui/t;->a(Lcom/xingbook/ui/t;I)V

    move v0, v8

    :goto_1
    iget-object v1, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    invoke-static {v1}, Lcom/xingbook/ui/t;->a(Lcom/xingbook/ui/t;)Landroid/app/Activity;

    move-result-object v1

    invoke-static {v1}, Lcom/xingbook/c/n;->f(Landroid/app/Activity;)F

    move-result v1

    iget-object v2, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    iget-object v2, v2, Lcom/xingbook/ui/t;->d:Ljava/lang/String;

    if-eqz v2, :cond_b

    const-string v2, ""

    iget-object v3, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    iget-object v3, v3, Lcom/xingbook/ui/t;->d:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_b

    invoke-static {}, Lcom/xingbook/ui/t;->a()Landroid/graphics/Paint;

    move-result-object v2

    const/high16 v3, 0x4200

    mul-float/2addr v1, v3

    invoke-virtual {v2, v1}, Landroid/graphics/Paint;->setTextSize(F)V

    invoke-static {}, Lcom/xingbook/ui/t;->a()Landroid/graphics/Paint;

    move-result-object v1

    invoke-virtual {v1}, Landroid/graphics/Paint;->getFontMetrics()Landroid/graphics/Paint$FontMetrics;

    move-result-object v1

    invoke-static {}, Lcom/xingbook/ui/t;->a()Landroid/graphics/Paint;

    move-result-object v2

    iget-object v3, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    iget-object v3, v3, Lcom/xingbook/ui/t;->d:Ljava/lang/String;

    invoke-virtual {v2, v3}, Landroid/graphics/Paint;->measureText(Ljava/lang/String;)F

    move-result v2

    sget v3, Lcom/xingbook/ui/t;->b:I

    int-to-float v3, v3

    iget v4, v1, Landroid/graphics/Paint$FontMetrics;->descent:F

    sub-float/2addr v3, v4

    iget v1, v1, Landroid/graphics/Paint$FontMetrics;->ascent:F

    sub-float v1, v3, v1

    div-float/2addr v1, v12

    iget-object v3, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    iget-object v3, v3, Lcom/xingbook/ui/t;->d:Ljava/lang/String;

    int-to-float v4, v10

    sub-float/2addr v4, v2

    sub-float/2addr v4, v11

    invoke-static {}, Lcom/xingbook/ui/t;->a()Landroid/graphics/Paint;

    move-result-object v5

    invoke-virtual {p1, v3, v4, v1, v5}, Landroid/graphics/Canvas;->drawText(Ljava/lang/String;FFLandroid/graphics/Paint;)V

    iget-object v1, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    mul-float v3, v11, v12

    add-float/2addr v2, v3

    invoke-static {v2}, Ljava/lang/Math;->round(F)I

    move-result v2

    sub-int v2, v10, v2

    invoke-static {v1, v2}, Lcom/xingbook/ui/t;->b(Lcom/xingbook/ui/t;I)V

    :cond_0
    :goto_2
    iget-object v1, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    iget-object v1, v1, Lcom/xingbook/ui/t;->d:Ljava/lang/String;

    if-eqz v1, :cond_1

    const-string v1, ""

    iget-object v2, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    iget-object v2, v2, Lcom/xingbook/ui/t;->d:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_2

    :cond_1
    iget-object v1, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    iget-object v1, v1, Lcom/xingbook/ui/t;->e:Landroid/graphics/Bitmap;

    if-nez v1, :cond_2

    iget-object v1, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    invoke-static {v1}, Lcom/xingbook/ui/t;->c(Lcom/xingbook/ui/t;)I

    move-result v1

    if-eq v1, v13, :cond_2

    iget-object v1, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    invoke-static {v1, v13}, Lcom/xingbook/ui/t;->b(Lcom/xingbook/ui/t;I)V

    :cond_2
    iget-object v1, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    invoke-static {v1}, Lcom/xingbook/ui/t;->c(Lcom/xingbook/ui/t;)I

    move-result v1

    if-ne v1, v13, :cond_d

    int-to-float v1, v10

    sub-float/2addr v1, v11

    float-to-int v1, v1

    :goto_3
    iget-object v2, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    invoke-static {v2}, Lcom/xingbook/ui/t;->g(Lcom/xingbook/ui/t;)I

    move-result v2

    if-eq v2, v1, :cond_f

    iget-object v0, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    invoke-static {v0, v1}, Lcom/xingbook/ui/t;->c(Lcom/xingbook/ui/t;I)V

    :goto_4
    if-eqz v8, :cond_3

    iget-object v0, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    invoke-static {v0}, Lcom/xingbook/ui/t;->g(Lcom/xingbook/ui/t;)I

    move-result v0

    iget-object v1, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    invoke-static {v1}, Lcom/xingbook/ui/t;->d(Lcom/xingbook/ui/t;)I

    move-result v1

    sub-int v1, v10, v1

    if-le v0, v1, :cond_e

    iget-object v0, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    iget-object v1, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    invoke-static {v1}, Lcom/xingbook/ui/t;->g(Lcom/xingbook/ui/t;)I

    move-result v1

    sub-int v1, v10, v1

    invoke-static {v0, v1}, Lcom/xingbook/ui/t;->a(Lcom/xingbook/ui/t;I)V

    :goto_5
    iget-object v0, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    invoke-static {v0}, Lcom/xingbook/ui/t;->h(Lcom/xingbook/ui/t;)Lcom/xingbook/ui/w;

    move-result-object v0

    iget-object v1, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    invoke-static {v1}, Lcom/xingbook/ui/t;->d(Lcom/xingbook/ui/t;)I

    move-result v1

    iget-object v2, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    invoke-static {v2}, Lcom/xingbook/ui/t;->g(Lcom/xingbook/ui/t;)I

    move-result v2

    sget v3, Lcom/xingbook/ui/t;->b:I

    invoke-virtual {v0, v1, v9, v2, v3}, Lcom/xingbook/ui/w;->layout(IIII)V

    :cond_3
    return-void

    :cond_4
    iget-object v0, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    invoke-static {v0}, Lcom/xingbook/ui/t;->b(Lcom/xingbook/ui/t;)I

    move-result v0

    if-ne v0, v8, :cond_7

    iget-object v0, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    iget v0, v0, Lcom/xingbook/ui/t;->i:I

    if-eqz v0, :cond_5

    invoke-static {}, Lcom/xingbook/ui/t;->a()Landroid/graphics/Paint;

    move-result-object v0

    iget-object v2, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    iget v2, v2, Lcom/xingbook/ui/t;->i:I

    invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setColor(I)V

    sget v0, Lcom/xingbook/ui/t;->a:I

    int-to-float v3, v0

    sget v0, Lcom/xingbook/ui/t;->b:I

    int-to-float v4, v0

    invoke-static {}, Lcom/xingbook/ui/t;->a()Landroid/graphics/Paint;

    move-result-object v5

    move-object v0, p1

    move v2, v1

    invoke-virtual/range {v0 .. v5}, Landroid/graphics/Canvas;->drawRect(FFFFLandroid/graphics/Paint;)V

    :cond_5
    iget-object v0, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    iget v0, v0, Lcom/xingbook/ui/t;->h:I

    if-eqz v0, :cond_6

    invoke-static {}, Lcom/xingbook/ui/t;->a()Landroid/graphics/Paint;

    move-result-object v0

    iget-object v2, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    iget v2, v2, Lcom/xingbook/ui/t;->h:I

    invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setColor(I)V

    sget v0, Lcom/xingbook/ui/t;->a:I

    int-to-float v3, v0

    int-to-float v5, v10

    sget v0, Lcom/xingbook/ui/t;->b:I

    int-to-float v6, v0

    invoke-static {}, Lcom/xingbook/ui/t;->a()Landroid/graphics/Paint;

    move-result-object v7

    move-object v2, p1

    move v4, v1

    invoke-virtual/range {v2 .. v7}, Landroid/graphics/Canvas;->drawRect(FFFFLandroid/graphics/Paint;)V

    :cond_6
    :goto_6
    invoke-static {}, Lcom/xingbook/ui/t;->a()Landroid/graphics/Paint;

    move-result-object v0

    invoke-virtual {v0, v13}, Landroid/graphics/Paint;->setColor(I)V

    goto/16 :goto_0

    :cond_7
    iget-object v0, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    invoke-static {v0}, Lcom/xingbook/ui/t;->b(Lcom/xingbook/ui/t;)I

    move-result v0

    const/4 v2, 0x2

    if-ne v0, v2, :cond_9

    iget-object v0, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    iget v0, v0, Lcom/xingbook/ui/t;->h:I

    if-eqz v0, :cond_8

    invoke-static {}, Lcom/xingbook/ui/t;->a()Landroid/graphics/Paint;

    move-result-object v0

    iget-object v2, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    iget v2, v2, Lcom/xingbook/ui/t;->h:I

    invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setColor(I)V

    iget-object v0, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    invoke-static {v0}, Lcom/xingbook/ui/t;->c(Lcom/xingbook/ui/t;)I

    move-result v0

    int-to-float v3, v0

    sget v0, Lcom/xingbook/ui/t;->b:I

    int-to-float v4, v0

    invoke-static {}, Lcom/xingbook/ui/t;->a()Landroid/graphics/Paint;

    move-result-object v5

    move-object v0, p1

    move v2, v1

    invoke-virtual/range {v0 .. v5}, Landroid/graphics/Canvas;->drawRect(FFFFLandroid/graphics/Paint;)V

    :cond_8
    iget-object v0, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    iget v0, v0, Lcom/xingbook/ui/t;->i:I

    if-eqz v0, :cond_6

    invoke-static {}, Lcom/xingbook/ui/t;->a()Landroid/graphics/Paint;

    move-result-object v0

    iget-object v2, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    iget v2, v2, Lcom/xingbook/ui/t;->i:I

    invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setColor(I)V

    iget-object v0, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    invoke-static {v0}, Lcom/xingbook/ui/t;->c(Lcom/xingbook/ui/t;)I

    move-result v0

    int-to-float v3, v0

    int-to-float v5, v10

    sget v0, Lcom/xingbook/ui/t;->b:I

    int-to-float v6, v0

    invoke-static {}, Lcom/xingbook/ui/t;->a()Landroid/graphics/Paint;

    move-result-object v7

    move-object v2, p1

    move v4, v1

    invoke-virtual/range {v2 .. v7}, Landroid/graphics/Canvas;->drawRect(FFFFLandroid/graphics/Paint;)V

    goto :goto_6

    :cond_9
    iget-object v0, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    iget v0, v0, Lcom/xingbook/ui/t;->h:I

    if-eqz v0, :cond_6

    invoke-static {}, Lcom/xingbook/ui/t;->a()Landroid/graphics/Paint;

    move-result-object v0

    iget-object v2, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    iget v2, v2, Lcom/xingbook/ui/t;->h:I

    invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setColor(I)V

    int-to-float v3, v10

    sget v0, Lcom/xingbook/ui/t;->b:I

    int-to-float v4, v0

    invoke-static {}, Lcom/xingbook/ui/t;->a()Landroid/graphics/Paint;

    move-result-object v5

    move-object v0, p1

    move v2, v1

    invoke-virtual/range {v0 .. v5}, Landroid/graphics/Canvas;->drawRect(FFFFLandroid/graphics/Paint;)V

    goto :goto_6

    :cond_a
    iget-object v0, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    invoke-static {v0}, Lcom/xingbook/ui/t;->d(Lcom/xingbook/ui/t;)I

    move-result v0

    float-to-int v1, v11

    if-eq v0, v1, :cond_10

    iget-object v0, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    float-to-int v1, v11

    invoke-static {v0, v1}, Lcom/xingbook/ui/t;->a(Lcom/xingbook/ui/t;I)V

    move v0, v8

    goto/16 :goto_1

    :cond_b
    iget-object v1, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    iget-object v1, v1, Lcom/xingbook/ui/t;->e:Landroid/graphics/Bitmap;

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    invoke-static {v1}, Lcom/xingbook/ui/t;->e(Lcom/xingbook/ui/t;)Landroid/graphics/Matrix;

    move-result-object v1

    if-eqz v1, :cond_c

    iget-object v1, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    invoke-static {v1}, Lcom/xingbook/ui/t;->e(Lcom/xingbook/ui/t;)Landroid/graphics/Matrix;

    move-result-object v1

    const v2, 0x3fe66666

    iget-object v3, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    invoke-static {v3}, Lcom/xingbook/ui/t;->f(Lcom/xingbook/ui/t;)Landroid/graphics/PointF;

    move-result-object v3

    iget v3, v3, Landroid/graphics/PointF;->x:F

    iget-object v4, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    invoke-static {v4}, Lcom/xingbook/ui/t;->f(Lcom/xingbook/ui/t;)Landroid/graphics/PointF;

    move-result-object v4

    iget v4, v4, Landroid/graphics/PointF;->y:F

    invoke-virtual {v1, v2, v3, v4}, Landroid/graphics/Matrix;->postRotate(FFF)Z

    iget-object v1, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    iget-object v1, v1, Lcom/xingbook/ui/t;->e:Landroid/graphics/Bitmap;

    iget-object v2, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    invoke-static {v2}, Lcom/xingbook/ui/t;->e(Lcom/xingbook/ui/t;)Landroid/graphics/Matrix;

    move-result-object v2

    const/4 v3, 0x0

    invoke-virtual {p1, v1, v2, v3}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;Landroid/graphics/Matrix;Landroid/graphics/Paint;)V

    :goto_7
    iget-object v1, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    mul-float v2, v11, v12

    iget-object v3, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    iget-object v3, v3, Lcom/xingbook/ui/t;->e:Landroid/graphics/Bitmap;

    invoke-virtual {v3}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v3

    int-to-float v3, v3

    add-float/2addr v2, v3

    invoke-static {v2}, Ljava/lang/Math;->round(F)I

    move-result v2

    sub-int v2, v10, v2

    invoke-static {v1, v2}, Lcom/xingbook/ui/t;->b(Lcom/xingbook/ui/t;I)V

    goto/16 :goto_2

    :cond_c
    iget-object v1, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    iget-object v1, v1, Lcom/xingbook/ui/t;->e:Landroid/graphics/Bitmap;

    iget-object v2, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    iget-object v2, v2, Lcom/xingbook/ui/t;->e:Landroid/graphics/Bitmap;

    invoke-virtual {v2}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v2

    sub-int v2, v10, v2

    int-to-float v2, v2

    sub-float/2addr v2, v11

    sget v3, Lcom/xingbook/ui/t;->b:I

    iget-object v4, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    iget-object v4, v4, Lcom/xingbook/ui/t;->e:Landroid/graphics/Bitmap;

    invoke-virtual {v4}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v4

    sub-int/2addr v3, v4

    int-to-float v3, v3

    div-float/2addr v3, v12

    const/4 v4, 0x0

    invoke-virtual {p1, v1, v2, v3, v4}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V

    goto :goto_7

    :cond_d
    iget-object v1, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    invoke-static {v1}, Lcom/xingbook/ui/t;->c(Lcom/xingbook/ui/t;)I

    move-result v1

    int-to-float v1, v1

    sub-float/2addr v1, v11

    float-to-int v1, v1

    goto/16 :goto_3

    :cond_e
    iget-object v0, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    iget-object v1, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    invoke-static {v1}, Lcom/xingbook/ui/t;->d(Lcom/xingbook/ui/t;)I

    move-result v1

    sub-int v1, v10, v1

    invoke-static {v0, v1}, Lcom/xingbook/ui/t;->c(Lcom/xingbook/ui/t;I)V

    goto/16 :goto_5

    :cond_f
    move v8, v0

    goto/16 :goto_4

    :cond_10
    move v0, v9

    goto/16 :goto_1
.end method

.method public onTouchEvent(Landroid/view/MotionEvent;)Z
    .locals 7

    const/4 v6, 0x2

    const/4 v0, 0x0

    const/4 v1, 0x1

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getPointerCount()I

    move-result v2

    if-eq v2, v1, :cond_1

    :cond_0
    :goto_0
    return v0

    :cond_1
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v2

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v3

    iget-object v4, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    iget-boolean v4, v4, Lcom/xingbook/ui/t;->f:Z

    if-eqz v4, :cond_6

    sget v4, Lcom/xingbook/ui/t;->a:I

    int-to-float v4, v4

    cmpg-float v4, v2, v4

    if-gtz v4, :cond_6

    if-nez v3, :cond_3

    iget-object v0, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    iget v0, v0, Lcom/xingbook/ui/t;->i:I

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    invoke-static {v0, v1}, Lcom/xingbook/ui/t;->d(Lcom/xingbook/ui/t;I)V

    invoke-virtual {p0}, Lcom/xingbook/ui/u;->invalidate()V

    :cond_2
    :goto_1
    move v0, v1

    goto :goto_0

    :cond_3
    if-ne v3, v1, :cond_2

    iget-object v2, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    iget v2, v2, Lcom/xingbook/ui/t;->i:I

    if-eqz v2, :cond_4

    iget-object v2, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    invoke-static {v2, v0}, Lcom/xingbook/ui/t;->d(Lcom/xingbook/ui/t;I)V

    invoke-virtual {p0}, Lcom/xingbook/ui/u;->invalidate()V

    :cond_4
    iget-object v2, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    invoke-static {v2}, Lcom/xingbook/ui/t;->i(Lcom/xingbook/ui/t;)Lcom/xingbook/ui/x;

    move-result-object v2

    if-eqz v2, :cond_5

    iget-object v2, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    invoke-static {v2}, Lcom/xingbook/ui/t;->i(Lcom/xingbook/ui/t;)Lcom/xingbook/ui/x;

    move-result-object v2

    invoke-interface {v2, v0}, Lcom/xingbook/ui/x;->a(I)V

    goto :goto_1

    :cond_5
    iget-object v0, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    invoke-static {v0}, Lcom/xingbook/ui/t;->a(Lcom/xingbook/ui/t;)Landroid/app/Activity;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/Activity;->finish()V

    goto :goto_1

    :cond_6
    iget-object v4, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    invoke-static {v4}, Lcom/xingbook/ui/t;->c(Lcom/xingbook/ui/t;)I

    move-result v4

    const/4 v5, -0x1

    if-le v4, v5, :cond_0

    iget-object v4, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    invoke-static {v4}, Lcom/xingbook/ui/t;->c(Lcom/xingbook/ui/t;)I

    move-result v4

    int-to-float v4, v4

    cmpl-float v2, v2, v4

    if-lez v2, :cond_0

    if-nez v3, :cond_a

    iget-object v0, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    iget v0, v0, Lcom/xingbook/ui/t;->i:I

    if-eqz v0, :cond_8

    iget-object v0, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    iget-boolean v0, v0, Lcom/xingbook/ui/t;->j:Z

    if-eqz v0, :cond_9

    iget-object v0, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    iget-boolean v0, v0, Lcom/xingbook/ui/t;->k:Z

    if-nez v0, :cond_7

    iget-object v0, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    invoke-static {v0, v6}, Lcom/xingbook/ui/t;->d(Lcom/xingbook/ui/t;I)V

    :cond_7
    :goto_2
    invoke-virtual {p0}, Lcom/xingbook/ui/u;->invalidate()V

    :cond_8
    :goto_3
    move v0, v1

    goto/16 :goto_0

    :cond_9
    iget-object v0, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    invoke-static {v0, v6}, Lcom/xingbook/ui/t;->d(Lcom/xingbook/ui/t;I)V

    goto :goto_2

    :cond_a
    if-ne v3, v1, :cond_8

    iget-object v2, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    iget-boolean v2, v2, Lcom/xingbook/ui/t;->j:Z

    if-eqz v2, :cond_c

    iget-object v2, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    iget-boolean v2, v2, Lcom/xingbook/ui/t;->k:Z

    if-eqz v2, :cond_b

    iget-object v2, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    iput-boolean v0, v2, Lcom/xingbook/ui/t;->k:Z

    iget-object v2, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    invoke-static {v2, v0}, Lcom/xingbook/ui/t;->d(Lcom/xingbook/ui/t;I)V

    :goto_4
    invoke-virtual {p0}, Lcom/xingbook/ui/u;->invalidate()V

    iget-object v0, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    invoke-static {v0}, Lcom/xingbook/ui/t;->i(Lcom/xingbook/ui/t;)Lcom/xingbook/ui/x;

    move-result-object v0

    if-eqz v0, :cond_8

    iget-object v0, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    invoke-static {v0}, Lcom/xingbook/ui/t;->i(Lcom/xingbook/ui/t;)Lcom/xingbook/ui/x;

    move-result-object v0

    invoke-interface {v0, v1}, Lcom/xingbook/ui/x;->a(I)V

    goto :goto_3

    :cond_b
    iget-object v0, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    iput-boolean v1, v0, Lcom/xingbook/ui/t;->k:Z

    goto :goto_4

    :cond_c
    iget-object v2, p0, Lcom/xingbook/ui/u;->a:Lcom/xingbook/ui/t;

    invoke-static {v2, v0}, Lcom/xingbook/ui/t;->d(Lcom/xingbook/ui/t;I)V

    goto :goto_4
.end method
